package ua.org.enginer.utils.time {
	
	import mx.formatters.DateFormatter;

	public function formatDate(date:Date, formatString:String='DD.MM.YY H:NN'):String {
		//formatString = formatString ? formatString : 'DD.MM.YY H:NN'
		var dataFormatter:DateFormatter = new DateFormatter()
		dataFormatter.formatString = formatString
		return dataFormatter.format(date)
	}
}

